// Author: Ivan Chau
package uk.ac.cam.kcic2.scene;

import uk.ac.cam.kcic2.math.Vector3D;

public class IntersectionInfo {

	public final double t;
	public final Vector3D position;
	public final Vector3D normal;
	public final Primitives object;
	public final boolean inwards;
	
	public IntersectionInfo(double tValue, Vector3D intersectingPoint, Vector3D surfaceNormal, 
			Primitives intersectingObject, boolean goingIn){
		t = tValue;
		position = intersectingPoint;
		normal = surfaceNormal;
		object = intersectingObject;
		inwards = goingIn;
	}	
}
